
package com.guoguo.service.impl;

import com.guoguo.entity.Comment;
import com.guoguo.entity.vo.CommentVO;
import com.guoguo.mapper.CommentMapper;
import com.guoguo.service.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by KLSD on 2017/9/11.
 */
@Service
public class CommentServiceImpl implements CommentService {
    @Autowired
   private CommentMapper commentMapper;


    @Override
    public int insert(Comment comment) {


        return commentMapper.insert(comment);
    }

    @Override
    public int insertUp(String commId) {
        return   commentMapper.insertUp(commId);

    }

    @Override
    public Comment getCommentById(String commId) {
        return  commentMapper.getCommentById(commId);

    }
}



